package com.example.demo.service;

import com.example.demo.entity.QuestionCategory;
import com.example.demo.exception.LoginException;
import com.example.demo.exception.ServiceException;
import com.example.demo.param.vo.CategoryVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


public interface ICateGoryService {

    Boolean insert(String title, String img, HttpServletRequest request) throws ServiceException;

    Boolean delete(String id);

    Boolean update(String id, String title, String img, HttpServletRequest request);

    QuestionCategory getById(String id);

    List<QuestionCategory> getAll();
}
